<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>页面导航管理</strong></div>
        <div class="padding border-bottom">
            <a href="JavaScript:void(0);" class="button button-small border-green">管理</a>
            <a href="{:U('add')}" class="button button-small border-green">新增</a>
        </div>

        <table class="table tb-type2">
            <thead>
                <tr class="thead">
                    <th>&nbsp;</th>
                    <th>排序</th>
                    <th>标题</th>
                    <th>链接</th>
                    <th class="align-center">所在位置</th>
                    <th class="align-center">新窗口打开</th>
                    <th class="align-center">操作</th>
                </tr>
            </thead>
            <tbody>
            <foreach item="v" name="list" key='k'>
                <tr class="hover" style="background: rgb(255, 255, 255);">
                    <td class="w24"><input type="checkbox" name="del_id[]" value="9" class="checkitem"></td>
                    <td class="w48 sort">{$v['nav_sort']}</td>
                    <td>{$v['nav_title']}</td>
                    <td>{$v['nav_url']}</td>
                    <td class="w150 align-center">
                        <switch name="v.nav_location">
                <case value="1">中部</case>
                <case value="2">底部</case>
                <case value="3">手机头部</case>
                <case value="4">手机底部</case>
                <default />头部
                </switch>
                </td>
                <td class="w150 align-center">
                    {$v['nav_new_open']?'是':'否'}
                </td>
                <td class="w72 align-center">
                    <a class="button bg-blue button-little" href="{:U('edit',array('nav_id'=>$v['nav_id']))}"><i class="icon-edit"></i>编辑</a>
                    <a class="button bg-red button-little js-del" href="{:U('del',array('nav_id'=>$v['nav_id']))}" data="1" title="删除"><i class="icon-minus-circle"></i>删除</a>
                </td>
                </tr>
            </foreach>
            </tbody>
            <tfoot class="panel-foot">
                <tr>
                    <td colspan="15"><div class="pages clearfix">{$pages}</div></td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "del",
    });
</script>